package com.chen.blue.result;

import com.chen.blue.base.ResultBase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.*;

/**
 * Created By CLT On 2023/10/26.
 */
@SuppressWarnings("all")
@Getter
@ToString(callSuper = true)
public class DataResult<T> extends ResultBase<T> {

    private static final long serialVersionUID = 1L;

    public void setData(T data) {
        if (Objects.nonNull((data))) {
            super.result = data;
        } else {
            super.result = null;
        }
    }

}
